package com.xuecheng.base.exception;

import java.io.Serializable;

/**
 * @author 星河一叶Ck
 * @date 2025/4/21
 */

// 错误响应参数包装
public class RestErrorResponse implements Serializable {
    private Integer errCode;
    private String errMessage;

    public RestErrorResponse(String errMessage) {
        this.errMessage = errMessage;
    }

    public RestErrorResponse (Integer errCode, String errMessage) {
        this.errCode = errCode;
        this.errMessage = errMessage;
    }

    public String getErrMessage() {
        return errMessage;
    }

    public void setErrMessage(String errMessage) {
        this.errMessage = errMessage;
    }

    public void setErrCode (Integer errCode, String errMessage) {
        this.errCode = errCode;
        this.errMessage = errMessage;
    }

    public String getErrCode (Integer errCode, String errMessage) {
        return errCode + errMessage;
    }
}
